package com.first.common.pojo;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
* 首页banner表
* @TableName crm_banner
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "轮播管理")
@TableName(value = "crm_banner")
public class CrmBanner implements Serializable {

    /**
    * ID
    */
    @ApiModelProperty("ID")
    private String id;
    /**
    * 标题
    */
    @ApiModelProperty("标题")
    private String title;
    /**
    * 图片地址
    */
    @ApiModelProperty("图片地址")
    @TableField(value = "image_url")
    private String imageUrl;
    /**
    * 链接地址
    */
    @ApiModelProperty("链接地址")
    @TableField(value = "link_url")
    private String linkUrl;
    /**
    * 排序
    */
    @ApiModelProperty("排序")
    private String sort;
    /**
    * 逻辑删除 1（true）已删除， 0（false）未删除
    */
    @ApiModelProperty("逻辑删除 1（true）已删除， 0（false）未删除")
    @TableField(value = "is_deleted")
    private String isDeleted;
    /**
    * 创建时间
    */
    @ApiModelProperty("创建时间")
    @TableField(value = "gmt_create")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    private LocalDateTime gmtCreate;
    /**
    * 更新时间
    */
    @ApiModelProperty("更新时间")
    @TableField(value = "gmt_modified")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    private LocalDateTime gmtModified;
    /**
    * 当前的启用状态
    */
    @ApiModelProperty("当前的启用状态")
    @TableField(value = "is_disable")
    private String isDisable;
}
